<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>w1002_1_windowObject</title>
		<script>
		
		window.onload=function(){
			var childWin,childWin2;
			
		  document.getElementById("btn01").onclick=function(){
			//window.open(URL,name,specs,replace)
			 childWin=window.open("notice.html","n","width=500 height=350 menubar=yes scrollbars=yes resizable=yes");				
				//childWin.document.write("<h2>==공지사항==</h2>");	 
			};	
		  
		  //시계창열기
		  document.getElementById("btn02").onclick=function(){		
			 childWin2=window.open("w1002.html","m","width=400 height=350 resizable=yes");
			};	
		  
		};//end of window.onload
		</script>
	</head>
	<body>
		<button id="btn01">새창열기</button>
		<button id="btn02">시계창열기</button>

	</body>
</html>












